import service from '@/utils/request'
// @Tags VideoWork
// @Summary 创建videoWork表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.VideoWork true "创建videoWork表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /videoWork/createVideoWork [post]
export const createVideoWork = (data) => {
  return service({
    url: '/videoWork/createVideoWork',
    method: 'post',
    data
  })
}

// @Tags VideoWork
// @Summary 删除videoWork表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.VideoWork true "删除videoWork表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /videoWork/deleteVideoWork [delete]
export const deleteVideoWork = (params) => {
  return service({
    url: '/videoWork/deleteVideoWork',
    method: 'delete',
    params
  })
}

// @Tags VideoWork
// @Summary 批量删除videoWork表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除videoWork表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /videoWork/deleteVideoWork [delete]
export const deleteVideoWorkByIds = (params) => {
  return service({
    url: '/videoWork/deleteVideoWorkByIds',
    method: 'delete',
    params
  })
}

// @Tags VideoWork
// @Summary 更新videoWork表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.VideoWork true "更新videoWork表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /videoWork/updateVideoWork [put]
export const updateVideoWork = (data) => {
  return service({
    url: '/videoWork/updateVideoWork',
    method: 'put',
    data
  })
}

// @Tags VideoWork
// @Summary 用id查询videoWork表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data query model.VideoWork true "用id查询videoWork表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /videoWork/findVideoWork [get]
export const findVideoWork = (params) => {
  return service({
    url: '/videoWork/findVideoWork',
    method: 'get',
    params
  })
}

// @Tags VideoWork
// @Summary 分页获取videoWork表列表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取videoWork表列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /videoWork/getVideoWorkList [get]
export const getVideoWorkList = (params) => {
  return service({
    url: '/videoWork/getVideoWorkList',
    method: 'get',
    params
  })
}

// @Tags VideoWork
// @Summary 不需要鉴权的videoWork表接口
// @Accept application/json
// @Produce application/json
// @Param data query exampleReq.VideoWorkSearch true "分页获取videoWork表列表"
// @Success 200 {object} response.Response{data=object,msg=string} "获取成功"
// @Router /videoWork/getVideoWorkPublic [get]
export const getVideoWorkPublic = () => {
  return service({
    url: '/videoWork/getVideoWorkPublic',
    method: 'get',
  })
}
